home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
rsxwdk2s.zip
/
RSXWDK
/
LIBSRC
/
DOS
/
DOS5700.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-17
|
454b
|
29 lines
#include <errno.h>
#include <sys/doscalls.h>
/*
** AX = 0x5700
** BX = handle
** return: CX:DX
*/
int dos_getftime(int handle, unsigned short * date, unsigned short * time)
{
struct REGPACK r;
r.eax = 0x5700;
r.ebx = handle;
_intr(0x21, &r);
if (r.eflags & 1) {
_sys_doserror2errno( r.eax & 0xFFFF);
return (-1);
}
else {
*date = r.edx & 0xFFFF;
*time = r.ecx & 0xFFFF;
return 0;
}
}